home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
dsp
/
dr.bub
/
96000.lha
/
96000
/
appb
/
b17.asm
< prev
next >
Wrap
Assembly Source File
|
1992-04-28
|
1KB
|
26 lines
; This program was originally published in the Motorola DSP96002 Users Manual
; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598. For
; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
; Benchmarks.
;
; B.1.7 Complex Multiply
; cr + jci = ( ar + jai ) * ( br + jbi )
;
; cr = ar * br - ai * bi R1 ? cr,ci R0 ? ar,ai R4 ? br,bi
; ci = ar * bi + ai * br D5 = ar D6 = bi D4 = br D7 = ai
;
; Program ICycles
; Words
move x:(r0),d5.s y:(r4),d6.s ; 1 1
fmpy.s d6,d5,d1 x:(r4),d4.s y:(r0),d7.s ; 1 1
fmpy.s d4,d7,d2 ; 1 1
fmpy.s d4,d5,d0 ; 1 1
fmpy d6,d7,d2 fadd.s d2,d1 ; 1 1
fsub.s d2,d0 d1.s,y:(r1) ; 1 1
move d0.s,x:(r1) ; 1 1
; ; --- ---
; Totals: 7 7
; ( 6 6)